<template>
    <div v-click-outside class="select">
        <input class="input-field" placeholder="搜索订单编号/账号昵称/手机号"
            @click="toggleDropdown">
        </input>
        <div class="suffix">
        </div>
    </div>
</template>

<script setup>
import { watch, ref, onMounted, computed } from 'vue'

</script>

<style lang="less" scoped>
.select {
    position: relative;
    display: inline-block;
    height: 48px;
    width: 280px;
    border-radius: 50%;
    flex-direction: row;
    .input-field {
        padding-left: 20px;
        box-sizing: border-box;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        border-radius: 50px;
        color: #24223480;
        background: #24223408;
        outline: none;
        font-size: 14px;
        border: 1px solid rgba(41, 46, 61, 0.1);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;

        &:hover {
            .hide {
                display: none;
            }

            .show {
                display: inline-block;
            }
        }

        .text {
            display: inline-block;
            width: 100%;
            padding-left: 15px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .suffix {
        display: flex;
        position: absolute;
        top :0;
        right: 0;
        text-align: center;
        color: #132241;
        background-color: #24223408;
        width: 48px;
        height: 48px;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        flex-shrink: 0;
        box-sizing: border-box;
        .clear {
            font-size: 12px;
            display: none;
        }
    }

}
</style>
